﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WFRepresentante.aspx.cs" Inherits="ProyectoBastanteo.WFRepresentante" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            border-style: solid;
            border-width: 1px;
            padding: 1px 4px;
            width: 155px;
        }
        .style2
        {
            width: 303px;
            border-style: solid;
            border-width: 1px;
            padding: 1px 4px;
        }
        .style3
        {
            font-family: Arial;
            font-size: medium;
        }
        .style6
        {
            border-style: solid;
            border-width: 1px;
            padding: 1px 4px;
            width: 155px;
            font-family: Arial;
            font-size: small;
        }
        .style8
        {
            font-family: Arial;
            font-size: small;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td class="style3">
                <strong>Registro de Representantes</strong></td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width: 72%;">
        <tr>
            <td class="style6">
                Cliente:</td>
            <td class="style2">
                <asp:DropDownList ID="ddlCliente" runat="server" 
                    DataSourceID="SqlDataSource1" DataTextField="razclie" 
                    DataValueField="codclie" 
                    onselectedindexchanged="ddlCliente_SelectedIndexChanged">
                 </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:BastanteoConnectionString2 %>" 
                    SelectCommand="SELECT [codclie], [razclie] FROM [Clientes]" 
                    onselecting="SqlDataSource1_Selecting">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style6">
                <strong>Datos del Representante</strong></td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style6">
                Tipo de Documento: </td>
            <td class="style2">
                <asp:DropDownList ID="ddlTipoDocumento" runat="server" Height="16px" 
                    Width="82px">
                    <asp:ListItem>DNI</asp:ListItem>
                    <asp:ListItem>Carnet de extranjeria</asp:ListItem>
                </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <span class="style8">Nro.Documento:</span>
                <asp:TextBox ID="txDocumento" runat="server" Width="122px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Nombre y Apellidos:</td>
            <td class="style2">
                <asp:TextBox ID="txtNombre" runat="server" Width="355px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Cargo: </td>
            <td class="style2">
                <asp:TextBox ID="txtCargo" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Grupo:</td>
            <td class="style2">
                <asp:DropDownList ID="DDLCargo" runat="server">
                    <asp:ListItem>A</asp:ListItem>
                    <asp:ListItem>B</asp:ListItem>
                    <asp:ListItem>C</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td class="style2">
                <asp:Button ID="btnNuevo" runat="server" onclick="btnNuevo_Click" 
                    Text="Nuevo" Width="67px" />
                <asp:Button ID="btnModificar" runat="server" Text="Modificar" 
                    onclick="btnModificar_Click" />
                <asp:Button ID="btnEliminar" runat="server" Text="Eliminar" />
                <asp:Button ID="btnSalir" runat="server" Text="Salir" 
                    onclick="btnSalir_Click" Width="63px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
